<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>考试安排详情</title>
</head>
<body bgcolor="#d3eaef" >
      <fieldset style="width:50%; margin-left: 25%; margin-top:5%">
		  <legend style="font-size: 25px; text-align:center">考试安排详情</legend>
		   <c:forEach items="${explan }" var="explandetail" varStatus="v">
<form id="myform1" name="myform1" action="<%=request.getContextPath()%>/teach/examplan/ExamPlanServlet?command=explanUpdate&id=${explandetail.id}" method="post">
		   <table border="0" style="font-size: 16px; width:100%; text-align:left">
		    <tr>
		      <th>试卷名称:</th>
		      <th>
		         <select name="paperName" style=" width:100% ; height:30px">
	                 <option value="${explandetail.id1 }"　align="center" >${explandetail.paperName }　</option>
	               <c:forEach items="${paperList }" var="paper">
	                 <option name="papername" value="${paper.id }"  >${paper.name }</option>
	              </c:forEach>
	            </select>
		      </th>
		    </tr>
		    <tr>
		      <th colspan="3"><hr></th>
		    </tr>
		    <tr>
		      <th>考试教室:</th>
		      <th>
		        <input type="text" name="classroom" value="${explandetail.exam_Classroom}" style=" width:100% ; height:25px"/>
		      </th>
		    </tr>
		    <tr>
		      <th colspan="3"><hr></th>
		    </tr>
		    <tr>
		      <th>考试时间段:</th>
		      <th>
	            <input type="datetime" name="exam_Time_Start" value="${explandetail.exam_Time_Start }" style=" width:46% ; height:30px"/>—
	            <input type="datetime" name="exam_Time_Stop" value="${explandetail.exam_Time_Stop }" style=" width:45% ; height:30px"/>  
	          </th>
		    </tr>
		    <tr>
		     <th colspan="3"><hr></th>
		    </tr>
		    <tr>
		      <th>考试班级:</th>
		      <th>
		        <select name="className" style=" width:100% ; height:30px">
	             <option value="${explandetail.id2}"　align="center" >${explandetail.className}</option>
	              <c:forEach items="${classList }" var="class1">
	               <option value="${class1.id }" >${class1.name }</option>
	              </c:forEach>
	            </select>
		      </th>
		    </tr>
		    <tr>
		      <th colspan="3"><hr></th>
		    </tr>
		    <tr>
		      <th>补考学员:</th>
		      <th><font color="#696969"><c:forEach items="${usersName }" var="userName">
		            <dl>
		              <dt>学员${userName.id}:</dt>
		              <dd>${userName.name}</dd>
		            </dl>
			      </c:forEach></font>
			  </th>
		    </tr>
		    <tr>
		      <th colspan="3"><hr></th>
		    </tr>
		    <tr>
		      <th>操作者:</th>
		      <th> <font color="#696969">${explandetail.managerName}</th>
		    </tr>
		    <tr>
		      <th colspan="3"><hr></th>
		    </tr>
		    <tr>
		      <th>操作时间:</th>
		      <th> <font color="#696969">${explandetail.operate_time}</font></th>
		    </tr>
		    <tr>
		      <th colspan="3"><hr></th>
		    </tr>
		    <tr>
		      <th>状　　态:</th>
		      <th>
			    <select name="state" style=" width:100% ; height:30px">
			        <c:set var="state" value="${explandetail.state}"></c:set>
	                  <option value="1"　align="center" <c:if test="${state == 1 }"> selected="selected" </c:if>>　有效　</option> 
	                  <option value="2" align="center" <c:if test="${state == 2 }"> selected="selected" </c:if>>　待生效　</option>
	                  <option value="3" align="center" <c:if test="${state == 3 }"> selected="selected" </c:if>>　已删除　</option>
                </select>
		      </th>
		    </tr>
		    <tr>
		      <th colspan="3"><hr></th>
		    </tr>
		    <tr>
		      <th>备　　注:</th>
		      <th ><input type="text" name="memo" value="${explandetail.memo}" style=" width:100% ; height:25px"/></th>
		    </tr>
		    <tr>
		      <th colspan="3"><hr></th>
		    </tr>
		    <tr>
	          <th></th>
	          <th colspan="2">
	            <input type="submit" value="修改" onclick="return confirm('是否修改？');" style="width:120px ; height:25px">
                <input type="reset" name="button" id="button" value="重置" onClick="return()" style="width:120px ; height:25px">
	          </th>
	        </tr>
	        <tr>
	          <th colspan="3"><a href="<%=request.getContextPath()%>/teach/examplan/ExamPlanServlet?command=list" style="text-decoration:none;">返回主页</a></th>
	       </tr>
		  </table></form>
		 </c:forEach>
	  </fieldset>
<script type="text/javascript">
    //重置功能
	  function hanshu(){
	     window.location.href= 'view/teach/examplan/examplan-add.jsp'  /*返回本页面*/
	   }
</script>
</body>
</html>